package gimys;

import org.newdawn.slick.geom.Shape;

public class Behavior {
	protected Shape agro;
	protected SolidObject mySolidObject;
	protected SolidObject victim;
	
	
	public SolidObject getMySolidObject() {
		return mySolidObject;
	}

	public void setMySolidObject(SolidObject mySolidObject) {
		this.mySolidObject = mySolidObject;
	}
	
	
	public Behavior(Shape agro) {
		super();
		this.agro = agro;
	}

	public Shape getAgro() {
		return agro;
	}

	public void setAgro(Shape agro) {
		this.agro = agro;
	}
/**
 * When the player is in agro
 */
	public void inAgro( SolidObject pVictim) {
		victim = pVictim;
	}
	/**
	 * When the player is out of agro
	 */
	public void outAgro( SolidObject pVictim ) {
		victim = null;
	}
	/*
	float[] getGoal(){
		float[] goal = new float[2];
		//lastDestroyTime += delta;

		if (victim != null && lastDestroyTime > 3000) {
			// Attack
			goal[0] = victim.getLocation().x;
			goal[1] = victim.getLocation().y;
		}
		else if (lastDestroyTime < 3000) {
			// Do nothing
		}
		else {
			// Do usual things
			goal =((Animal) mySolidObject).defaultPath.getPoint();
		}
		return goal;
	}*/
}
